package com.lock.immersive.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.lock.immersive.pojo.enums.ProductType;
import com.lock.immersive.pojo.enums.Size;
import com.lock.immersive.pojo.enums.TuanProcess;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName product
 */
@TableName(value ="product")
@Data
public class Product implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer productId;

    /**
     * 商家id
     */
    private Integer merchantId;

    /**
     * 
     */
    private String productName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     *
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * 描述
     */
    private String productDesc;

    /**
     * 尺码 json [L,XL]
     */
    private String productSizeList;

    @TableField(exist = false)
    private List<ProductItem> productItemList;

    /**
     * 价格（区间）
     */
    @TableField(exist = false)
    private String price;

    /**
     * 图片列表
     */
    private String picList;


    /**
     *
     */
    private Integer viewCount = 0;

    /**
     *
     */
    private Integer likeCount = 0;

    /**
     *
     */
    private Integer buyCount = 0;

    /**
     * 
     */
    private String fromPlace;

    /**
     * 标签
     */
    private String tagList;

    /**
     * 是否上线
     */
    private Integer isOnline = 0;


    @TableField(exist = false)
    private Tuan tuan;
    /**
     * 邮费
     */
    private Double postFee = 0.00;

    @TableLogic
    private Integer isDelete = 0;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}